import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import User from './views/user/User.vue'
import Index from './views/Index.vue'

Vue.use(Router)

export default new Router({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      children:[
        {path:'/user', name:'user',component:User},
        {path:'/', name:'index',component:Index}
      ]
    }
  ]
})
